﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WorkBasket.Data.Entities
{
    public class Unit
    {
        [Key]
        public int UnitID { get; set; }
        public string UnitName { get; set; }

        public bool IsPrivateConnection { get; set; }

        public bool IsPublicConnection { get; set; }

        [JsonIgnore]
        public virtual ICollection<Workflow> Workflows { get; set; }
        [JsonIgnore]
        public virtual ICollection<Group> Groups { get; set; }

        [JsonIgnore]
        public ICollection<DomainUnit> DomainUnits { get; set; }

 
    }
}
